package ${packageName}.model.en;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
* @author 19324
* @TableName ${enName}
*/
@TableName(value = "${enName}")
@Data
public class ${enName} implements Serializable {

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

<#if columns??>
    <#list columns as column>
        <#if column.type='VARCHAR'||column.type='TEXT'||column.type='CHAR'||column.type='MEDIUMTEXT'>
    /**
    * ${column.remark}
    */
    private String ${column.propertyName?uncap_first};
        </#if>
        <#if (column.type='INT')&&!(column.columnName='is_deleted')>
    /**
    * ${column.remark}
    */
    private Integer ${column.propertyName?uncap_first};
        </#if>
        <#if (column.type='BGIINT')&&(column.isPrimaryKey?? &&column.isPrimaryKey)>
    /**
    * ${column.remark}
    */
    @TableId(type = IdType.AUTO)
    private Long ${column.propertyName?uncap_first};
        </#if>
        <#if column.type='DATETIME'>
    /**
    * ${column.remark}
    */
    private Date ${column.propertyName?uncap_first};
        </#if>
        <#if column.type = 'BIGINT' && (column.isPrimaryKey?? &&!column.isPrimaryKey)>
    /**
    * ${column.remark!''}
    */
    private Long ${column.propertyName?uncap_first!''};
        </#if>
        <#if column.type='DOUBLE'>
    /**
    * ${column.remark}
    */
    private Double ${column.propertyName?uncap_first};
        </#if>
        <#if column.type='BIT'>
    /**
    * ${column.remark}
    */
    private Boolean ${column.propertyName?uncap_first};
        </#if>
        <#if column.columnName='is_deleted'>
   /**
   * ${column.remark}
   */
   //    逻辑删除
   @TableLogic
   private Boolean ${column.propertyName?uncap_first};
        </#if>
    </#list>
</#if>
}